<template>
  <div class="block">
    <el-carousel height="450px">
      <el-carousel-item v-for="item in pic" :key="item.id">
        <h3 class="medium"><img :src="item.name" alt=""></h3>
      </el-carousel-item>
    </el-carousel>
  </div>
  
</template>
<script>
    export default {
        data() {
            return {
                pic:[
                    {id:1, name:"https://ts1.cn.mm.bing.net/th/id/R-C.3e903e476bcface111f02796a3b1ff19?rik=pShIrlfEQjug6g&riu=http%3a%2f%2fwww.chuangmeinong.com%2fuploadfile%2f2019%2f1109%2f20191109023027930.jpg&ehk=P5z%2bfWnswFFmeerr2cgvqcjuQvcwZpG1KqFjaFqKf0o%3d&risl=&pid=ImgRaw&r=0"},
                    {id:3,name: "https://ts1.cn.mm.bing.net/th/id/R-C.363476fb2bb8c4ccb2496fc22af4d5d8?rik=AFCYq8VDnnryCA&riu=http%3a%2f%2ffile.youboy.com%2fa%2f4%2f69%2f3%2f0%2f8138690.jpg&ehk=M636gmLHUpMwlcoFeJD9eDjCJhXmuJY9eHnibUeoNc0%3d&risl=&pid=ImgRaw&r=0"},
                    {id:4,name: "https://ts1.cn.mm.bing.net/th/id/R-C.02cbc44e1492623dca48d374a72b9aa2?rik=FOzcnwJWDs5LHg&riu=http%3a%2f%2fwww.chuangmeinong.com%2fuploadfile%2f2017%2f1123%2f20171123091923673.jpg&ehk=wjfJPHpe8%2bpiX7gUbQK%2fLua0zcTaymNoGKyvjGb1%2fbI%3d&risl=&pid=ImgRaw&r=0"},
                    {id:5,name:"  https://ts1.cn.mm.bing.net/th/id/R-C.1a3df9478430e4c9c84f777b068d120c?rik=Igq2fKqJkNS33g&riu=http%3a%2f%2ffile.youboy.com%2fa%2f83%2f16%2f98%2f8%2f10516798.jpg&ehk=72N7SXxGs%2f%2fW8Q3HuqndWjprxvCic1GkOPFNm0pW81A%3d&risl=&pid=ImgRaw&r=0"}
                ]
            }
        },

    }

</script>
<style lang="less" scoped>
.el-container{
   .el-carousel--horizontal{
      width: 780px;
      border-radius: 15px;
      margin-bottom: 15px;
    }
    .block img{
      width: 100%;
      height: 450px;
    }
   
}
   
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
</style>
